import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isLogin:localStorage.getItem('token') || null,
    
  },
  getters: {
  },
  mutations: {
    setLogin(state,token){
      state.isLogin=token
      localStorage.setItem('token',token)
    }
  },
  actions: {
  },
  modules: {
  }
})
